package com.tencent.ncnnyolov7;

import android.content.res.AssetManager;
import android.graphics.Bitmap;

public class NcnnYolov7 {

    public native boolean InitUSE(AssetManager mgr);
    public native boolean InitCrystal(AssetManager mgr);

    public native Obj[] Detect(Bitmap bitmap, boolean use_gpu, int model);

    public class Obj {
        public float x;
        public float y;
        public float w;
        public float h;
        public String label;
        public float prob;
    }

    static {
        System.loadLibrary("ncnnyolov7");
    }
}
